home *** CD-ROM | disk | FTP | other *** search
- /*
- FinalWriter-Schrift-Info - 9.4.94 - von Gunther Lemm
- */
-
-
- proptab=1 /* für den Workbench-Screen sollte proptab auf 0 gesetzt werden */
-
-
-
- if ~show('L',"rexxreqtools.library") then addlib('rexxreqtools.library',0,-30,0)
-
- titel="ARexx-Macro: Zeichensatz-Info"
-
- Address='FinalW'
- Options results
-
- STATUS PORTNAME
- address = result
-
- TEXTTOOL
-
- STATUS PARAPOS
- MOVETOPARA result
-
- STATUS FONTNAME
- font=result
-
- STATUS FONTSIZE
- size=result
-
- STATUS FONTWIDTH
- width=result
-
- STATUS SCREEN
- parse var result . scy .
- if (scy>190 & scy<290) then lace=0
- else lace=1
-
- GETDISPLAYPREFS MEASURE
- select
- when result="Inches" then mes=" Zoll"
- when result="Metric" then mes=" cm"
- when result="Pica" then mes=" Pica"
- end
-
- t.0='0a'x
- pt=" Punkt" ; proz=" Prozent"
-
- if proptab=1 then /* prop für hires-interlaced */
- do
- if lace=1 then
- do
- t.1="Zeichensatz:...."||font||t.0
- t.2="Größe:................."||size||pt||t.0
- t.3="Breite:.................."||width||proz||t.0
- end
- else /* prop für hires */
- do
- t.1="Zeichensatz:..."||font||t.0
- t.2="Größe:..............."||size||pt||t.0
- t.3="Breite:.............."||width||proz||t.0
- end
- end
- else
- do
- t.1="Zeichensatz:."||font||t.0 /* wbench */
- t.2="Größe:......."||size||pt||t.0
- t.3="Breite:......"||width||proz||t.0
- end
-
- back=rtezrequest(t.1||t.2||t.3,"Mehr...|Ändern| OK ",titel)
- if back=0 then exit
- if back=2 then
- do ; TYPESPECS ; exit ; end
-
- STATUS FONTOBLIQUE
- obl=result
-
- STATUS FONTCASE
- select
- when result="Normal" then case="Groß- u. Kleinbuchstaben"
- when result="AllCaps" then case="nur Großbuchstaben"
- when result="SmallCaps" then case="Kapitälchen"
- end
-
- STATUS FONTPOSITION
- select
- when result="Normal" then pos="Grundlinie"
- when result="Subscript" then pos="Tiefgestellt"
- when result="SuperScript" then pos="Hochgestellt"
- end
-
- STATUS FONTSTYLE
- select
- when result="Underline" then style="Unterstrichen"
- when result="DUnderline" then style="Doppelt Unterstrichen"
- when result="StrikThru" then style="Durchgestrichen"
- otherwise style="Normal"
- end
-
- STATUS FONTCOLOR
- color=result
-
- STATUS JUSTIFY
- select
- when result="Left" then just="Linksbündig"
- when result="Right" then just="Rechtsbündig"
- when result="Center" then just="Zentriert"
- otherwise just="Blocksatz"
- end
-
- STATUS LEFTMARGIN
- lmargin=result
-
- STATUS RIGHTMARGIN
- rmargin=result
-
- STATUS INDENT
- indent=result
-
-
- STATUS SPACING
- select
- when result="Single" then lead="1-zeilig"
- when result="One And One Half" then lead="1,5-zeilig"
- when result="Double" then lead="2-zeilig"
- otherwise do ; STATUS FONTLEADING ; lead=result||pt ; end
- end
-
- STATUS HYPHEN
- if result="On" then hyp="Aktiv"
- else hyp="Inaktiv"
-
- STATUS HOTZONE
- zone=result
-
- if proptab=1 then
- do
- if lace=1 then
- do /* hires interlaced */
- t.1= "***** ZEICHENSATZ-EINSTELLUNGEN *****"||t.0
- t.2= "Zeichensatz:........"||font||t.0
- t.3= "Größe:....................."||size||pt||t.0
- t.4= "Breite:......................"||width||proz||t.0
- t.5= "Durchschuß:.........."||lead||t.0
- t.6= "Neigung:................"||obl||proz||t.0
- t.7= "Position:.................."||pos||t.0
- t.8= "Schriftschnitt:........."||style||t.0
- t.9= "Schreibweise:......"||case||t.0
- t.10="Farbe:......................"||color||t.0||t.0
- t.11="***** ABSATZ-EINSTELLUNGEN *****"||t.0
- t.12="Ausrichtung:.........."||just||t.0
- t.13="Einrückungen "||t.0
- t.14=" Links:..................."||lmargin||mes||t.0
- t.15=" Rechts:.............."||rmargin||mes||t.0
- t.16=" Erster:................."||indent||mes||t.0
- t.17="Silbentrennung:.."||hyp||t.0
- t.18="Trennbereich:......"||zone||mes||t.0
- end
- else
- do /* hires */
- t.1= "***** ZEICHENSATZ-EINSTELLUNGEN *****"||t.0
- t.2= "Zeichensatz:......."||font||t.0
- t.3= "Größe:..................."||size||pt||t.0
- t.4= "Breite:.................."||width||proz||t.0
- t.5= "Durchschuß:........"||lead||t.0
- t.6= "Neigung:..............."||obl||proz||t.0
- t.7= "Position:..............."||pos||t.0
- t.8= "Schriftschnitt:..."||style||t.0
- t.9= "Schreibweise:....."||case||t.0
- t.10="Farbe:..................."||color||t.0||t.0
- t.11="***** ABSATZ-EINSTELLUNGEN *****"||t.0
- t.12="Ausrichtung:........."||just||t.0
- t.13="Einrückungen "||t.0
- t.14=" Links:..............."||lmargin||mes||t.0
- t.15=" Rechts:............"||rmargin||mes||t.0
- t.16=" Erster:............"||indent||mes||t.0
- t.17="Silbentrennung:.."||hyp||t.0
- t.18="Trennbereich:....."||zone||mes||t.0
- end
- end
- else
- do /* wbench */
- t.1= "*** ZEICHENSATZ-EINSTELLUNGEN ***"||t.0
- t.2= "Zeichensatz:..."||font||t.0
- t.3= "Größe:........."||size||pt||t.0
- t.4= "Breite:........"||width||proz||t.0
- t.5= "Durchschuß:...."||lead||t.0
- t.6= "Neigung:......."||obl||proz||t.0
- t.7= "Position:......"||pos||t.0
- t.8= "Schriftschnitt:"||style||t.0
- t.9= "Schreibweise:.."||case||t.0
- t.10="Farbe:........."||color||t.0||t.0
- t.11="*** ABSATZ-EINSTELLUNGEN ***"||t.0
- t.12="Ausrichtung:..."||just||t.0
- t.13="Einrückungen "||t.0
- t.14=" Links:...."||lmargin||mes||t.0
- t.15=" Rechts:..."||rmargin||mes||t.0
- t.16=" Erster:..."||indent||mes||t.0
- t.17="Silbentrennung:"||hyp||t.0
- t.18="Trennbereich:.."||zone||mes||t.0
- end
-
-
- t1=t.1||t.2||t.3||t.4||t.5||t.6||t.7||t.8||t.9
- t2=t.10||t.11||t.12||t.13||t.14||t.15||t.16||t.17||t.18
-
- back=rtezrequest(t1||t2," OK |Absatz ändern|Schrift ändern",titel)
- select
- when back=0 then TYPESPECS
- when back=1 then exit
- when back=2 then PARAGRAPH
- end
-
- exit
-